<template>
  <view class="sticky-box">
    <in-work-cell :inset="false" :modal="info">
      <template slot="link" v-if="info.status">
        <slot>
          <m-button size="sm" :type="map[info.status].type" plain> {{ map[info.status].statusTxt }}</m-button>
        </slot>
      </template>
    </in-work-cell>
  </view>
</template>

<script>
import { map } from '@/utils/constant'
export default {
  props: {
    info: {
      type: Object,
      default: () => {},
    },
  },
  data() {
    return {
      map,
    }
  },
}
</script>

<style lang="scss" scoped>
.sticky-box {
  ::v-deep {
    .cell-group__wrap {
      margin: 0;
      border-top: 1px solid #f5f5f5;
      border-radius: 0;
    }
  }
}
</style>
